package lhy.utils;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class PropertyUtils {
    public static Properties loadProps(String fileName){
        InputStream in= PropertyUtils.class.getClassLoader().getResourceAsStream(fileName);
        Properties prop=new Properties();
        try {
            prop.load(in);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
        return prop;
    }
}
